package com.young.springdemo.service.factoryMethod;

public class AppleFactory implements Factory {
    @Override
    public Phone createPhone() {
        System.out.println("创建手机");
        return  new ApplePhone();
    }
}
